package com.example.day_17.contract;

import com.example.day_17.bean.BannerBean;
import com.example.day_17.bean.InFoBean;

public interface HomeContract {
    interface Model {
        void getBannerData(CallBack callBack);
        void getListData(CallBack callBack);
    }

    interface View {
        void onSuccessBanner(BannerBean bannerBean);

        void onSuccessList(InFoBean inFoBean);

        void onFail(String errorMsg);
    }

    interface Presenter {
        void getBannerData();

        void getListData();
    }

    interface CallBack {
        void onSuccessBanner(BannerBean bannerBean);

        void onSuccessList(InFoBean inFoBean);

        void onFail(String errorMsg);
    }
}
